#include "gamewindow.h"
#include "spacewargame.h"

GameWindow::GameWindow(QWidget *parent) 
	: GWindow(parent)
{
	GetScene()->setSceneRect(0,0,600,450);
	//Back* p = new Back("bg");    
}

GameWindow::~GameWindow()
{
}


void GameWindow::keyPressEvent(QKeyEvent *event)
{
	SpaceWarGame* pGame = dynamic_cast<SpaceWarGame*>(GEngine::GetGame());
	pGame->ProcessKeyEvent(event);
	
	GWindow::keyPressEvent(event);
}